package com.cpit.platform.dao;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import com.cpit.platform.dto.Role;

public interface RoleRepository extends JpaRepository<Role, Long> {
	@SuppressWarnings("unchecked")
	Role save(Role auth);
	void delete(Role auth);
	
	Role findById(Integer id);
	Role findByName(String name);
	Page<Role> findByNameContaining(String name, Pageable pageable);
}
